package com.touchwp.java.wechat.message;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import com.touchwp.java.wechat.converter.CDATAAdapter;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "xml")
public class LinkMessage extends Message {
	private static final long serialVersionUID = 6874177040494408616L;

	public LinkMessage() {
	}

	@XmlJavaTypeAdapter(value = CDATAAdapter.class)
	@XmlElement(name = "Title")
	private String title;

	@XmlJavaTypeAdapter(value = CDATAAdapter.class)
	@XmlElement(name = "Description")
	private String description;

	@XmlJavaTypeAdapter(value = CDATAAdapter.class)
	@XmlElement(name = "Url")
	private String url;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

}
